/*
 * testhash.h
 *
 *  Created on: 2011-10-12
 *      Author: shenjiong
 */

#ifndef TESTHASH_H_
#define TESTHASH_H_

#include "merghashcode.h"

template<class T>
void testhashcode(std::string &src, int round)
{
        ReadProtoFile a(src);
            T t1;

          while(1)
           {
              if(a.GetProject(t1))
                {
                  std::cout << t1.indexkey() << " " << gethashcode( t1.indexkey()) % round << std::endl ;
                }
                else
                {
                    break;

                }
            }
            return;

}


#endif /* TESTHASH_H_ */
